<ion-view title="借款记录列表">
    
	<ion-content style="background-color:#f5f5f5;padding-top:10px;">
		<div style="height: 30px;line-height: 30px;background-color: white;">
			<div style="float: left;width: 25%;text-align: center;">借款金额</div>
			<div style="float: left;width: 25%;text-align: center;">借款时间</div>
			<div style="float: left;width: 25%;text-align: center;">期数</div>
			<div style="float: left;width: 25%;text-align: center;">状态</div>
		</div>
		<ion-list>
			<ion-item class="item-remove-animate item-avatar item-icon-right" ng-click="showPayBacks('{{detail.longProduceId}}')" ng-repeat="detail in changProduces" type="item-text-wrap" style="font-size:13px;padding: 0px;min-height: 30px;line-height:30px;">
					<div style="float: left;width: 25%;text-align: center;">
						{{detail.investAccount | number:0}}
					</div>
					<div style="float: left;width: 25%;text-align: center;">
						{{detail.createTime | date:'yyyy-MM-dd'}}
					</div>
					<div style="float: left;width: 25%;text-align: center;">
						{{detail.period}}
					</div>
					<div style="float: left;width: 25%;text-align: center;">
						<span ng-if="detail.payBackStatus==2">已还清</span>
						<span ng-if="detail.payBackStatus==1">未还清</span>
						<span ng-if="detail.payBackStatus==0">未还款</span>
					</div>
			</ion-item>
		 	<ion-infinite-scroll ng-if="changNoMore" on-infinite="loadLongProduceByUserId()" distance="20%"></ion-infinite-scroll> 
		</ion-list>
	</ion-content>
</ion-view>